//
//  AppDelegate.m
//  WeChat
//
//  Created by wangcarl on 16/8/29.
//  Copyright © 2016年 wangcarl. All rights reserved.
//

#import "AppDelegate.h"
#import "DDLog.h"
#import "DDTTYLogger.h"

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    
//    [DDLog addLogger:[DDTTYLogger sharedInstance]];
    
//    [self setupSteam];
//    [self connectToHost];
    
        if([Account shareAccount].isLogin)
        {
            id mainVc=[[UIStoryboard storyboardWithName:@"Main" bundle:nil] instantiateInitialViewController];
            self.window.rootViewController=mainVc;
            [[XMPPTool sharedXMPPTool] xmppLogin:nil];
        }
    
    // Override point for customization after application launch.
    return YES;
}


@end
